﻿using DevExpress.Web.ASPxEditors;
using DevExpress.Web.Mvc;

namespace Dogshow.Web.Settings
{
    public class PasComboBoxSettings : ComboBoxSettingsCommon
    {
        public PasComboBoxSettings()
        {
            Properties.TextField = "ImePsa";
            CallbackRouteValues = new { Controller = "Psi", Action = "PsaComboBoxCallback" };
            Properties.Columns.Add("BrojRodovnika");
            Properties.Columns.Add("ImePsa");
            Properties.Buttons.Add(new EditButton("+") { ToolTip = "Dodaj novog psa" });
            var refreshBtn = new EditButton();
            refreshBtn.ToolTip = "Osveži podatke";
            refreshBtn.Image.Url = "~/Content/images/refresh.png";
            Properties.Buttons.Add(refreshBtn);
        }
    }
}